package com.lyx.bookmanager.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Book {
    private long bookId;
    private String name;
    private String author;
    private String publish;
    private String isbn;
    private String introduction;
    private String language;
    private BigDecimal price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pubdate;
    private int classId; //分类号
    private String className; //分类
    private int pressmark; //书架号
    private int state;
    private String filepath;
	private String filename;
	private int likeCount;
	private List<GxUserBookCollect> remarkList;

	private int ispriviledge;
	private int isBuy;
	private int isLend;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date p_createtime;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date p_endtime;

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public int getIsLend() {
		return isLend;
	}

	public void setIsLend(int isLend) {
		this.isLend = isLend;
	}

	public int getIsBuy() {
		return isBuy;
	}

	public void setIsBuy(int isBuy) {
		this.isBuy = isBuy;
	}

	public int getIspriviledge() {
		return ispriviledge;
	}

	public void setIspriviledge(int ispriviledge) {
		this.ispriviledge = ispriviledge;
	}

	public Date getP_createtime() {
		return p_createtime;
	}

	public void setP_createtime(Date p_createtime) {
		this.p_createtime = p_createtime;
	}

	public Date getP_endtime() {
		return p_endtime;
	}

	public void setP_endtime(Date p_endtime) {
		this.p_endtime = p_endtime;
	}

	public List<GxUserBookCollect> getRemarkList() {
		return remarkList;
	}

	public void setRemarkList(List<GxUserBookCollect> remarkList) {
		this.remarkList = remarkList;
	}

	public int getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(int likeCount) {
		this.likeCount = likeCount;
	}

	public Book() {
		super();
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public long getBookId() {
		return bookId;
	}
	public void setBookId(long bookId) {
		this.bookId = bookId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPublish() {
		return publish;
	}
	public void setPublish(String publish) {
		this.publish = publish;
	}
	public String getIsbn() {
		return isbn;
	}
	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public Date getPubdate() {
		return pubdate;
	}
	public void setPubdate(Date pubdate) {
		this.pubdate = pubdate;
	}
	public int getClassId() {
		return classId;
	}
	public void setClassId(int classId) {
		this.classId = classId;
	}
	public int getPressmark() {
		return pressmark;
	}
	public void setPressmark(int pressmark) {
		this.pressmark = pressmark;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
    
}
